{extend name="index\index"}
{block name="main"}
<link rel="stylesheet" type="text/css" href="">
<div id="js-main" class="main channel-main" style="min-height: 469px;">
    <div class="aside">
        <div class="widget-box widget-hot-video-box">

        </div>
        <div class="widget-box widget-hot-channel-box">
            <div class="widget widget-hot-channel">
                <h5>热门频道</h5>
                <div class="related-channels-list">
                    {volist name="arti" id="vl"}
                    <li class="js-channel-subscribe-item" data-fromid="e1411601" data-channelid="undefined"
                        >
                        <a href="/focus/{$vl['cid']}">
                            <img src="{$vl['photo']}">
                            <p>{$vl['cname']}</p>
                        </a>
                        {if !session('?tel')}
                        <button class="subscribe" data-index="{$vl['cid']}"  style="display: block">订阅</button>
                        {else /}

                            {in name="$vl['cid']" value="$list3"}
                                <button class="unsubscribe" data="{$vl['cid']}" style="display: block">已订阅</button>
                                <button class="subscribe" data="{$vl['cid']}" style="display: none">订阅</button>
                            {else/}
                                <button class="unsubscribe" data="{$vl['cid']}" style="display: none">已订阅</button>
                                <button class="subscribe" data="{$vl['cid']}"  style="display: block">订阅</button>
                            {/in}
                            
                        {/if}
                    </li>
                    {/volist}
                    
                </div>
            </div>
        </div>
    </div>
    <!-- 新闻 -->
    <div class="channel-top" style="display: block;">
        <div class="float-left channel-news-nav rendered">
            <div class="tab tab-0" data-index="0">全部</div>
        </div>
    </div>
    <div class="channel-news channel-news-0">
        {volist name="article" id="vo"}
            <a class="item doc style-small-image style-content-middle" href="/articles/{$vo['aid']}" id="{$vo['aid']}">

                <div class="doc-image-small-wrapper">
                    <div class="doc-image-box">
                        <img class="doc-image doc-image-small"
                             src="/{$vo['amage']}">


                    </div>
                </div>
                <div class="doc-content">
                    <div class="doc-content-inline">
                        <div class="doc-title">{$vo['aname']}</div>
                        <div class="doc-info">


                            <span class="source">{$vo['nickname']}</span>

                            <span class="date">{$vo['regtime']|date="Y-m-d H:i",###}</span>
                            
                        </div>
                    </div>
                </div>
            </a>
            {/volist}
    </div>
</div>
{/block}
